package com.aurora_manito.xiaomi.service;

import com.aurora_manito.xiaomi.entity.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Aurora_Manito
 * @since 2020-05-27
 */
@Service
public interface CartService extends IService<Cart> {

    Cart findByUidAndgid(int uid, int gid);

    int add(Cart cart);

    int update(Cart cart);

    List<Cart> findByUid(Integer uid);

    int delete(int uid, int gid);

    int deleteByUid(int uid);
}
